import { http } from "../utils/http";
import type {
  IGetBannerListApiResponse,
  IGetCourseAndTeacherListApiResponse,
} from "./types";

/**
 * 获取首页轮播图列表
 */
export const getBannerListApi = () => {
  return http.get<IGetBannerListApiResponse>("/cms/banner");
};

/**
 * 获取首页课程和老师列表数据
 */
export const getCourseAndTeacherListApi = () => {
  return http.get<IGetCourseAndTeacherListApiResponse>("/edu/index");
};
